<div ng-controller="QuestionController"  class="signup container">
    <div class="card">
        <form name="question_add_from" ng-submit="Question.add()">
            <div class="input-group">
                <label>当前心情</label>
                <input type="text"
                       ng-model="Question.new_question.title"
                       required
                       ng-minlength="5"
                       ng-maxlength="255"
                       name="title"
                />
            </div>
            <div class="input-group">
                <label>发生的事情</label>
                <textarea type="text"
                          ng-model="Question.new_question.desc"
                          name = 'desc'
                          required
                >
                    </textarea>
            </div>
            <div class="input-group">
                <button type="submit" class="primary"
                        ng-disabled="question_add_from.$invalid">提交</button>
            </div>
        </form>
    </div>
</div>